package com.simtop.service.impl;

import com.simtop.common.ServerResponse;
import com.simtop.pojo.User;
import com.simtop.service.U3dSportService;
import com.simtop.util.JwtUtil;
import javax.servlet.http.HttpServletRequest;


/**
 * @author Administrator
 * @date 2021-05-14
 */
public class U3dSportServiceImpl implements U3dSportService {

    @Override
    public ServerResponse<String> insertSportToIlab(HttpServletRequest request) {
        /**
         * 获取token,解析信息
         */
        String token = request.getHeader("Authorization");
        String jwt = token.substring(token.lastIndexOf(" ")+1);
        User u = JwtUtil.unsign(jwt,User.class);
        return ServerResponse.createBySuccessMsg("");
    }
}
